package models

type SignUpRequest struct {
	UserName   string `json:"user_name" bind:"required" validate:"required"`
	PassWord   string `json:"pass_word" bind:"required" validate:"required"`
	RePassWord string `json:"re_pass_word" bind:"required,eqfield=PassWord"`
}

type LoginRequest struct {
	UserName string `json:"user_name" bind:"required" validate:"required"`
	PassWord string `json:"pass_word" bind:"required" validate:"required"`
}

type User struct {
	UserID   int64  `json:"user_id"gorm:"PRIMARY_KEY"`
	UserName string `json:"user_name"gorm:"unique;not null"`
	PassWord string `json:"user_name"gorm:"not null"`
	Token    string `json:"token"`
}
